package com.cmcc.aregister.cs.util;

import java.util.Map;

import android.os.Parcel;
import android.os.Parcelable;

public class PotoalParcelable implements Parcelable {
	public Map<String, Object> map;

	@SuppressWarnings("unchecked")
	public PotoalParcelable(Parcel source) {
		map = (Map<String, Object>) source.readValue(PotoalParcelable.class
				.getClassLoader());
	}

	public PotoalParcelable(Map<String, Object> map) {
		this.map = map;
	}

	public int describeContents() {
		return 0;
	}

	public void writeToParcel(Parcel dest, int flags) {
		dest.writeValue(map);
	}

	public static final Creator<PotoalParcelable> CREATOR = new Creator<PotoalParcelable>() {

		public PotoalParcelable createFromParcel(Parcel source) {
			return new PotoalParcelable(source);
		}

		public PotoalParcelable[] newArray(int size) {
			return new PotoalParcelable[size];
		}

	};
}
